<script type="text/javascript">
msgDelBox = {
    msg : "<?= $this->translate('msgDelBox')?>",
    boxTitle : "<?= $this->translate('titleDelBox')?>",
    msgStatus: "<?= $this->translate('statusDel')?>"
};
</script>
<div class="boxList">
<?foreach ($this->boxes as $box):?>
    <ul id="ulBoxList-<?=$box->oid?>" class="ulBoxList">
        <li class="liContentInfoBox">
            <div class="liTitleBoxContent"><?=$box->title ?></div>
            <div class="liTitleFeedContent"><?=$box->feed->name?></div>
            <div class="liURLFeedContent"><?=$box->feed->url?></div>
        </li>
        <li class="liboxbar">
            <div class="boxbar">
               <ul class="ulboxbar">
                    <li id="lockBlock-<?=$box->oid?>" 
                        class="liItemboxbar separatorItemBar <?if($box->isPublished == 0):?>hidden<?endif?>">
                        <img class="imgItemboxbar separatorImageBar" alt="Published" src="../img/boxbar/add.png" />
                        <a id="lock-<?=$box->oid?>" 
                           class="aItemboxbar" 
                           href="javascript:notPublished('<?=$box->oid?>','/admin/setboxpublished');">
                           <?= $this->translate('isNotPublished')?>
                        </a>
                    </li>
                    <li id="unlockBlock-<?=$box->oid?>" 
                        class="liItemboxbar separatorItemBar <?if($box->isPublished == 1):?>hidden<?endif?>">
                        <img class="imgItemboxbar separatorImageBar" alt="Not Published" src="../img/boxbar/remove.png" />
                        <a id="unlock-<?=$box->oid?>" 
                           class="aItemboxbar" 
                           href="javascript:published('<?=$box->oid?>','/admin/setboxpublished');">
                           <?= $this->translate('isPublished')?>
                        </a>
                    </li>
                    <li class="liItemboxbar separatorItemBar">
                        <img class="imgItemboxbar separatorImageBar" alt="Delete" src="../img/boxbar/cancelgrey.png" />
                        <a id="delete-<?=$box->oid?>" 
                           class="aItemboxbar" 
                           href="javascript:deleteBox('<?=$box->oid?>','/admin/deletebox',msgDelBox);">
                           <?= $this->translate('delete')?>
                        </a>
                    </li>
                </ul>     
            </div>
        </li>
    </ul>
<?endforeach?>
<div class="paginator">
<?= $this->paginationControl($this->boxes,
                                    'Sliding',
                                    'paginatorcontrols/searchcontrol.phtml'); ?>
                                    
<?if(sizeof($this->boxes) == 0):?>
    <p class="OrangeColor">
        <i><?= $this->translate('noResult')?></i>
    </p>
<?endif?>      
</div>                                    
</div>